package com.itheima;

import java.util.ArrayList;

public class TestDemo01 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("java");
        arrayList.add("world");
        arrayList.add(0,"figthing");
        System.out.println(arrayList);
        arrayList.remove("world");
        arrayList.remove(0);
        System.out.println(arrayList);
        arrayList.add("figthing");
        arrayList.set(1,"figthing1");
        arrayList.get(1);
        System.out.println(arrayList);
        int a = arrayList.size();
        System.out.println(a);
    }
}
